package com.itheima.controller;

import com.itheima.domain.Category;
import com.itheima.service.CategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 导航栏接口
 * @Author: hsp
 * @Date: 2022/11/18-11-18-0:07
 * @Description: com.itheima.controller
 * @version: 1.0.0
 */
@RestController
@RequestMapping("/portal/category")
public class CategoryController {

    @Resource
    private CategoryService categoryService;

    //查询导航栏分类列表
    @GetMapping("/findAll")
    public List<Category> findAll(){
        return categoryService.findAll();
    }




}
